Xbasic
INDEX.IS_VALID Function
Syntax
Result_Flag as L = Is_Valid()
Description
Is the current index valid.
Discussion
The .IS_VALID() method scans the records that qualify for the index and checks that there is a corresponding index entry for each. The method returns .T. (TRUE) if the current index is valid; otherwise, it returns .F. (FALSE).
Example
dim t as P dim i as P t = table.open("customer") i = t.index_primary_put("Lastname") ? i.is_valid() = .T.
See Also